package com.zmm.zebulon.module.product.biz.api.comment;

import com.zmm.zebulon.module.product.api.comment.ProductCommentApi;
import com.zmm.zebulon.module.product.api.comment.dto.ProductCommentCreateReqDTO;
import com.zmm.zebulon.module.product.biz.service.comment.ProductCommentService;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;

/**
 * description: 商品评论 API 实现类
 *
 * @author zebulon
 * package com.zmm.zebulon.module.product.biz.api.comment
 * name: ProductCommentApiImpl
 * date 2025/8/19 20:13
 */
@Service
@Validated
public class ProductCommentApiImpl implements ProductCommentApi {

    @Resource
    private ProductCommentService productCommentService;

    @Override
    public Long createComment(ProductCommentCreateReqDTO createReqDTO) {
        return productCommentService.createComment(createReqDTO);
    }

}
